import { createPinia } from 'pinia'
import { createApp } from 'vue'
import './style.css'
import router from './router'
import App from './App.vue'
import {createPersistedState} from "pinia-plugin-persistedstate";
const pinia = createPinia();
pinia.use(createPersistedState());
const app = createApp(App)
app.config.errorHandler = (err, vm, info) => {
    console.error('发生错误:', err, vm, info);
};

app.use(router);
app.use(pinia);
app.mount('#app');
